import React from 'react';
import actionCreators from '../store/actionCreators/counter2';
import { connect } from '../react-redux';
class Counter2 extends React.Component{
	render(){
		return (
			<div>
				<p>{this.props.number}</p>
				<button onClick={this.props.add2}>+</button>
				<button onClick={this.props.minus2}>-</button>
			</div>
		)
	}
}
export default connect(
	state=>state.counter2,
	actionCreators
)(Counter2);
